﻿using System;
using System.Collections.Generic;
using System.Text;
using libCommonClass;

namespace TTServer.Messages
{
    public class PPTSlideShowClickMessage : TTMessage
    {
        private String _temporaryKey;

        public String TemporaryKey
        {
            get { return _temporaryKey; }
            set { _temporaryKey = value; }
        }

        public int Action;
        public double x;
        public double y;

        public override void ReadMessage(libReadWrite.BigEndianReader sr)
        {
            this.TemporaryKey = sr.ReadString();

            this.Action = (int)sr.ReadByte();
            this.x = sr.ReadDouble();
            this.y = sr.ReadDouble();
        }

        public override void WriteMessage(libReadWrite.BigEndianWriter sw)
        {
            throw new NotImplementedException();
        }

        public override libCommonClass.TTMessage Clone()
        {
            return new PPTSlideShowClickMessage();
        }

        public override int GetMessageID()
        {
            return MessageKind.PPT_SLIDE_SHOW_CLICK;
        }

        public override string GetMessageName()
        {
            return "PPTSlideShowClickMessage";
        }
    }
}
